From db2a78829dbe4816892461351264608b3b9e0f41 Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Fri, 28 Dec 2018 14:08:32 +0000 Subject: [PATCH] Clean up hash when cleaning index Signed-off-by: Jonathan Dieter --- src/lib/index/index_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/index/index_common.c b/src/lib/index/index_common.c index 89c9047..3456d26 100644 --- a/src/lib/index/index_common.c +++ b/src/lib/index/index_common.c @@ -47,6 +47,7 @@ void index_clean(zckIndex *index) { if(index == NULL) return; + HASH_CLEAR(hh, index->ht); if(index->first) { zckChunk *next; zckChunk *tmp=index->first; -- 2.30.2